/*
 * SQLMarcadorDAO.java
 *
 * Created on 7 de noviembre de 2007, 19:58
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package webportlet.model.marcador.dao;

import java.sql.Connection;
import java.util.ArrayList;
import webportlet.model.marcador.dto.MarcadorDTO;
import webportlet.model.util.DuplicateInstanceException;
import webportlet.model.util.InstanceNotFoundException;
import webportlet.model.util.InternalErrorException;

/**
 *
 * @author Alvarete
 */
public interface SQLMarcadorDAO {
    
    public MarcadorDTO create(Connection connection, MarcadorDTO marcadorDTO)
        throws DuplicateInstanceException, InternalErrorException;
        
    public boolean exists(Connection connection, Long id)
        throws InternalErrorException;
        
    public MarcadorDTO find(Connection connection, Long id)
        throws InstanceNotFoundException, InternalErrorException;
        
    public void update(Connection connection, MarcadorDTO marcadorDTO) 
        throws InstanceNotFoundException, InternalErrorException;
        
    public void remove(Connection connection, Long id) 
        throws InstanceNotFoundException, InternalErrorException;
    
    public ArrayList <MarcadorDTO> recuperarLista(Connection connection, 
            ArrayList <Long> listaIdentificadores)
            throws InstanceNotFoundException, InternalErrorException;
    
}
